package cn.ffcs.contract.service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import cn.ffcs.base.service.BaseService;
import cn.ffcs.base.web.PageControl;
import cn.ffcs.contract.dao.IProjectDAO;
import cn.ffcs.contract.model.ActContract;

/**
 * 
 * 合同管理逻辑层实现<br/> <table>
 * <tr>
 * <td>负责人/principal: </td>
 * <td colspan="2">pany</td>
 * <tr>
 * <td>修改记录/revision:</td>
 * <td colspan="2"></td>
 * </tr>
 * <tr>
 * <td>日期:</td>
 * <td>修改人:</td>
 * <td>修改说明:</td>
 * </tr>
 * <tr>
 * <td></td>
 * <td></td>
 * <td></td>
 * </tr>
 * </table>
 * @author g.pany
 * @version $Id$
 */
public class ProjectService extends BaseService implements IProjectService
{
    private IProjectDAO projectDAO;

    public Map findObjectById(String tableName,String disCol,String cond){
        return projectDAO.findObjectById(tableName,disCol,cond);
    }
    
    /**
     *  1、  归档合同查询
     */
    public PageControl findProjectContract(HashMap conds,PageControl pageControl)
    {
        return projectDAO.findVoaContract(conds,pageControl);
    }
    
    /**
     * 2、合同会签进度查询
     */
    public PageControl findContractCountersigned(HashMap conds,PageControl pageControl)
    {
        return projectDAO.findContractCountersigned(conds,pageControl);
    }
    
    /**
     * 3、合同预警
     */
    public PageControl findContractWarning(HashMap conds,PageControl pageControl)
    {
        return projectDAO.findContractWarning(conds,pageControl);
    }
    
    /**
     * 4、合同模板查询
     */
    public PageControl findContractTemplate(HashMap conds,PageControl pageControl)
    {
        return projectDAO.findContractTemplate(conds,pageControl);
    }
    
    /**
     * 5、经济合同查询
     */
    public PageControl findEconomicContracts(HashMap conds,PageControl pageControl)
    {
        return projectDAO.findEconomicContracts(conds,pageControl);
    }
    
    /**
     * 6、经济合同查询:已办理
     */
    public PageControl findEconomicContractsByflow(HashMap conds,PageControl pageControl)
    {
        return projectDAO.findEconomicContractsByflow(conds,pageControl);
    }
    
    public ActContract findCUserInfoById(String userId){ 
        return projectDAO.findCUserInfoById(userId);
    }

    public String findIdBySigncode(String signcode){
        return projectDAO.findIdBySigncode(signcode);
    }
    
    public IProjectDAO getProjectDAO()
    {
        return projectDAO;
    }

    public void setProjectDAO(IProjectDAO projectDAO)
    {
        this.projectDAO = projectDAO;
    }

}
